import request from "@/utils/request";

export function page(data) {
  return request({
    url: "/v1/down-record/page",
    method: "get",
    params: data
  });
}

export function save(data) {
  return request({
    url: "/v1/down-record/save",
    method: "post",
    data: data
  });
}

export function downAgain(data) {
  return request({
    url: "/v1/down-record/again",
    method: "post",
    data: data
  });
}


//日志收集  下发命令

export function commandIssue(data) {
  return request({
    url: "/v1/commandIssue/commandIssue",
    method: "post",
    data
  });
}
//返回后根据id 查询

export function getCommandIssue(id,data) {
  return request({
    url: "/v1/commandIssue/get/"+id,
    method: "get",
    params:data
  });
}